﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data.SqlClient;
using System.Data;
using cmsservice.Entity;

namespace cmsservice.DAL
{
   public class newDMSListDAL
    {
       public List<NewsList> getDMSListDAL(string code)
        {
            string sql = "select newsid_num as Id,f006v_12001 as Title,rectime as PTime from dbo.vm_dms_getnewsbycode where code in ('"+code+"') order by rectime desc";

            return SqlHelper.GetDataByColumnsLst<NewsList>(DBConn.NewDMSConnstr, sql, null);
        }

    }
    
}
